/*==================================================================
 *
 *
 *  File name:  menu.c
 *  Use to:     Draw various menu interfaces and call up menu styles that can be displayed
 *  Author:     Hao Zhiyu
 *
 *  文件名：            menu.c
 *  用途：                 绘制各个菜单界面，调用可显示菜单样式
 *  作者：                 郝志宇
 *
 *
==================================================================*/

#include "menu.h"
#include "OLED.h"
#include "Display.h"
#include "user.h"
#include "iic.h"


void menutest(){

//    for(int i = 0; i<=2;i++){
//        char a[20];
//        sprintf(a,"%.4f",standardR[i]);
//        OLED_ShowString(0, i, a, 8, 0);
//    }
//    for(int i = 0; i<=2;i++){
//        char a[20];
//        sprintf(a,"%d",DATAREAD[i]);
//        OLED_ShowString(0, i, a, 8, 0);
//    }

//    char a[100];
//    char b[100];
//    char c[100];
//    char d[100];
//    sprintf(a,"%d",testa);
//    sprintf(b,"%d",testb);
//    sprintf(c,"%d",testc);
//    sprintf(d,"%d",testd);

    signed short RoughCalib_Value = ADC_DataCalib_Rough();  // 获取ADC的粗校准值
    float sy = 0.98;
    gSYS.adcBuff = ADC_ExcutSingleConver() + RoughCalib_Value;
    gSYS.out*=sy;
    gSYS.out +=(1-sy)* gSYS.adcBuff;
    OLED_ShowNum(0, 0, gSYS.out, 5, 16);
//    OLED_ShowNum(0, 2, standardR[1]*100000, 5, 16);
//    OLED_ShowNum(0, 4, standardR[2], 5, 16);
//    OLED_ShowString(0, 2, c, 8, 0);
//    OLED_ShowString(0, 3, d, 8, 0);
//    OLED_ShowString(0, 5, nn, 8, 0);
}

void MenuDeveloperMode(){

    if(gSYS.DeveloperMode==1){
        OLED_ShowString(0, 0, "Long press to quit", 6, 0);
    }else if(gSYS.DeveloperMode ==11){
        OLED_ShowString(0, 0, "Developer Mode", 6, 0);
        OLED_ShowString(0, 1, "put on 51 gloss board", 6, 0);
        OLED_ShowString(0, 2, "short press to Start ", 6, 0);
    }else if(gSYS.DeveloperMode == 12){
        OLED_ShowString(0, 0, "receive1...", 6, 0);
    }else if(gSYS.DeveloperMode == 13){
        OLED_ShowString(0, 1, "receive2...", 6, 0);
    }else if(gSYS.DeveloperMode == 14){
        OLED_ShowString(0, 0, "short press to back", 6, 0);
        OLED_BigNum(8, 2, gSYS.glossNum/1000);
        OLED_BigNum(32, 2, gSYS.glossNum/100%10);
        OLED_BigNum(56, 2, gSYS.glossNum/10%10);
        OLED_BigNum(104, 2, gSYS.glossNum%10);
        OLED_BigNum(80, 2, 10);                         //小数点
    }
}

void MainMenu1()//主界面
{
    //下面这俩固定的
    OLED_ShowMainString(0,0,"60", 16, 0);//60
    OLED_DrawBMP(16, 0, 24, 2, (unsigned char *)&F8X16[95*16]);//°

    if(gSYS.BLon == 2){
        OLED_DrawBMP(36, 0, 48, 2, ICONFont1212[0x00]); //蓝牙标志
    }
    if(gSYS.glossNum < 1000 && gSYS.glossNum >99){    //千位为0
        OLED_BigNum(8, 2, 11);
        OLED_BigNum(32, 2, gSYS.glossNum/100%10);
        OLED_BigNum(56, 2, gSYS.glossNum/10%10);
        OLED_BigNum(104, 2, gSYS.glossNum%10);
    }else if(gSYS.glossNum <100&& gSYS.glossNum >= 0){    //百位为0
        OLED_BigNum(8, 2, 11);
        OLED_BigNum(32, 2, 11);
        OLED_BigNum(56, 2, gSYS.glossNum/10%10);
        OLED_BigNum(104, 2, gSYS.glossNum%10);
    }else if(gSYS.glossNum<8000){   // 四位全显示，最大800
        OLED_BigNum(8, 2, gSYS.glossNum/1000);
        OLED_BigNum(32, 2, gSYS.glossNum/100%10);
        OLED_BigNum(56, 2, gSYS.glossNum/10%10);
        OLED_BigNum(104, 2, gSYS.glossNum%10);
    }else {
        OLED_BigNum(8, 2, 11);
        OLED_BigNum(32, 2, 11);
        OLED_BigNum(56, 2, 0);
        OLED_BigNum(104, 2, 0);
    }
    OLED_DrawBMP(100, 0, 124, 2, battery[gSYS.Battry]);    //电量
//    OLED_ShowNum(30, 0, gSYS.out, 5, 16);
    OLED_BigNum(80, 2, 10);                         //小数点
//    if（）
}

void MenuSet2()//设置界面
{
    OLED_DrawBMP(0, 0, 48, 2, MENU_ICON1648[3]);    //语言选择图标
    OLED_DrawBMP(79, 0, 127, 2, MENU_ICON1648[0]);  //更多设置图标
    OLED_DrawBMP(0, 4, 48, 6, MENU_ICON1648[5]);    //蓝牙开关图标
    OLED_DrawBMP(79, 4, 127, 6, MENU_ICON1648[2]);  //相关信息图标

    if(0 == gSYS.language)
    {
        if(gSYS.whichChoose == 1){
            OLED_ShowChineseString(0, 2, YYXZbuf, 4, 1);  // 语言设置
        }else{
            OLED_ShowChineseString(0, 2, YYXZbuf, 4, 0);  // 语言设置
        }
        if(gSYS.whichChoose == 2){
            OLED_ShowChineseString(79, 2, GDSZbuf, 4, 1); // 更多设置
        }else{
            OLED_ShowChineseString(79, 2, GDSZbuf, 4, 0); // 更多设置
        }
        if(gSYS.whichChoose == 3){
            OLED_ShowChineseString(0, 6, LYKGbuf, 4, 1);  // 蓝牙开关
        }else{
            OLED_ShowChineseString(0, 6, LYKGbuf, 4, 0);  // 蓝牙开关
        }
        if(gSYS.whichChoose == 4){
            OLED_ShowChineseString(79, 6, XGXXbuf, 4, 1); // 相关信息
        }else{
            OLED_ShowChineseString(79, 6, XGXXbuf, 4, 0); // 相关信息
        }
        if(gSYS.whichChoose == 5){
            OLED_ShowCHinese(57, 2, 0, 1);//返
            OLED_ShowCHinese(57, 4, 1, 1);//回
        }else{
            OLED_ShowCHinese(57, 2, 0, 0);//返
            OLED_ShowCHinese(57, 4, 1, 0);//回
        }

    }else if(1 == gSYS.language)
    {
        if(gSYS.whichChoose == 1){
            OLED_ShowString(0, 1, "LANGUAGE", 6, 1);
        }else{
            OLED_ShowString(0, 1, "LANGUAGE", 6, 0);
        }
        if(gSYS.whichChoose == 2){
            OLED_ShowString(79, 1, "SETINGS ", 6, 1);
        }else{
            OLED_ShowString(79, 1, "STTINGS ", 6, 0);
        }
        if(gSYS.whichChoose == 3){
            OLED_ShowString(0, 5, " ON/OFF ", 6, 1);
        }else{
            OLED_ShowString(0, 5, " ON/OFF ", 6, 0);
        }
        if(gSYS.whichChoose == 4){
            OLED_ShowString(79, 5, "  INFO  ", 6, 1);
        }else{
            OLED_ShowString(79, 5, "  INFO  ", 6, 0);
        }
        if(gSYS.whichChoose == 5){
            OLED_ShowString(59, 0, "R", 8, 1);
            OLED_ShowString(59, 1, "e", 8, 1);
            OLED_ShowString(59, 2, "t", 8, 1);
            OLED_ShowString(59, 3, "u", 8, 1);
            OLED_ShowString(59, 4, "r", 8, 1);
            OLED_ShowString(59, 5, "n", 8, 1);
        }else{
            OLED_ShowString(59, 0, "R", 8, 0);
            OLED_ShowString(59, 1, "e", 8, 0);
            OLED_ShowString(59, 2, "t", 8, 0);
            OLED_ShowString(59, 3, "u", 8, 0);
            OLED_ShowString(59, 4, "r", 8, 0);
            OLED_ShowString(59, 5, "n", 8, 0);
        }
    }
}

void MenuMoreSet3()//更多设置界面
{
    OLED_DrawBMP(0, 0, 48, 2, MENU_ICON1648[1]);    //手机软件图标
    OLED_DrawBMP(79, 0, 127, 2, MENU_ICON1648[4]);  //关机时间图标
    OLED_DrawBMP(0, 4, 48, 6, MENU_ICON1648[10]);   //开机标志图标
    OLED_DrawBMP(79, 4, 127, 6, MENU_ICON1648[6]);  //蜂鸣开关图标
    if(0 == gSYS.language)
    {
        if(gSYS.whichChoose == 1)
        {
            OLED_ShowChineseString(0, 2, SJRJbuf, 4, 1);    //手机软件
        }else{
            OLED_ShowChineseString(0, 2, SJRJbuf, 4, 0);    //手机软件
        }
        if(gSYS.whichChoose == 2)
        {
            OLED_ShowChineseString(79, 2, GJSJbuf, 4, 1);   //关机时间
        }else{
            OLED_ShowChineseString(79, 2, GJSJbuf, 4, 0);   //关机时间
        }
        if(gSYS.whichChoose == 3)
        {
            OLED_ShowChineseString(0, 6, KJBZbuf, 4, 1);    //开机标志
        }else{
            OLED_ShowChineseString(0, 6, KJBZbuf, 4, 0);    //开机标志
        }
        if(gSYS.whichChoose == 4)
        {
            OLED_ShowChineseString(79, 6, FMKGbuf, 4, 1);   //蜂鸣开关
        }else{
            OLED_ShowChineseString(79, 6, FMKGbuf, 4, 0);   //蜂鸣开关
        }
        if(gSYS.whichChoose == 5)
        {
            OLED_ShowCHinese(57, 2, 0, 1);//返
            OLED_ShowCHinese(57, 4, 1, 1);//回
        }else{
            OLED_ShowCHinese(57, 2, 0, 0);//返
            OLED_ShowCHinese(57, 4, 1, 0);//回
        }

    }else if(1 == gSYS.language)
    {
        if(gSYS.whichChoose == 1){
            OLED_ShowString(0, 1, "SOFTWARE", 6, 1);
        }else{
            OLED_ShowString(0, 1, "SOFTWARE", 6, 0);
        }
        if(gSYS.whichChoose == 2){
            OLED_ShowString(79, 1, "DIS.TIME", 6, 1);
        }else{
            OLED_ShowString(79, 1, "DIS.TIME", 6, 0);
        }
        if(gSYS.whichChoose == 3){
            OLED_ShowString(0, 5, "  LOGO  ", 6, 1);
        }else{
            OLED_ShowString(0, 5, "  LOGO  ", 6, 0);
        }
        if(gSYS.whichChoose == 4){
            OLED_ShowString(79, 5, "BZ ONOFF", 6, 1);
        }else{
            OLED_ShowString(79, 5, "BZ ONOFF", 6, 0);
        }
        if(gSYS.whichChoose == 5){
            OLED_ShowString(59, 0, "R", 8, 1);
            OLED_ShowString(59, 1, "e", 8, 1);
            OLED_ShowString(59, 2, "t", 8, 1);
            OLED_ShowString(59, 3, "u", 8, 1);
            OLED_ShowString(59, 4, "r", 8, 1);
            OLED_ShowString(59, 5, "n", 8, 1);
        }else{
            OLED_ShowString(59, 0, "R", 8, 0);
            OLED_ShowString(59, 1, "e", 8, 0);
            OLED_ShowString(59, 2, "t", 8, 0);
            OLED_ShowString(59, 3, "u", 8, 0);
            OLED_ShowString(59, 4, "r", 8, 0);
            OLED_ShowString(59, 5, "n", 8, 0);
        }

    }
}

void MenuSoftware4() // 二维码界面
{
    OLED_DrawBMP(37, 0, 101, 8, BMP2);
}

void MenuSetOffTime4()//自动关机时间界面
{
    if(0 == gSYS.language)
    {
        OLED_ShowChineseString(28, 0, ZDGJSJbuf, 6, 0);//自动关机时间
//        OLED_ShowCHinese(80, 3, 3, 0);
        if(gSYS.confirm == 1){
            OLED_ShowChineseString(28, 6, FHAKGJbuf, 6, 0);//返回按开关键
            if((gSYS.SetOffTime/10)==0){
                OLED_ChineseNum(64, 3, gSYS.SetOffTime%10, 1);
                OLED_ChineseNum(58, 3, 10, 0);
            }else{
                OLED_ChineseNum(58, 3, gSYS.SetOffTime/10, 1);
                OLED_ChineseNum(64, 3, gSYS.SetOffTime%10, 1);
            }
        }else{
            OLED_ShowChineseString(28, 6, FHAKGJbuf, 6, 1);//返回按开关键
            if((gSYS.SetOffTime/10)==0){
                OLED_ChineseNum(64, 3, gSYS.SetOffTime%10, 0);
                OLED_ChineseNum(58, 3, 10, 0);
            }else{
                OLED_ChineseNum(58, 3, gSYS.SetOffTime/10, 0);
                OLED_ChineseNum(64, 3, gSYS.SetOffTime%10, 0);
            }
        }
    }else if(1 == gSYS.language)
    {
        //显示英文字符： AUTOM CLOSE TIME 131 RETURN KEY
        OLED_ShowString(16, 0, "AUTOM CLOSE TIME", 6, 0);
//        OLED_ShowString(80, 3, "MIN", 6, 0);
        if(gSYS.confirm == 1){
            OLED_ShowString(34, 6, "RETURN KEY", 6, 0);
            if((gSYS.SetOffTime/10)==0){
                 OLED_ChineseNum(64, 3, gSYS.SetOffTime%10, 1);
                 OLED_ChineseNum(58, 3, 10, 0);
             }else{
                 OLED_ChineseNum(58, 3, gSYS.SetOffTime/10, 1);
                 OLED_ChineseNum(64, 3, gSYS.SetOffTime%10, 1);
             }
        }else{
            OLED_ShowString(34, 6, "RETURN KEY", 6, 1);
            if((gSYS.SetOffTime/10)==0){
                OLED_ChineseNum(64, 3, gSYS.SetOffTime%10, 0);
                OLED_ChineseNum(58, 3, 10, 0);
            }else{
                OLED_ChineseNum(58, 3, gSYS.SetOffTime/10, 0);
                OLED_ChineseNum(64, 3, gSYS.SetOffTime%10, 0);
            }
        }
    }
}

void MenuSetFlag4() // 开机标志界面
{
    if (0 == gSYS.language)
    {
        OLED_ShowChineseString(28, 0, DQKJBZbuf, 6, 0);     //当前开机标志
        if(gSYS.whichChoose == 1){
            OLED_ShowChineseString(40, 2, DKBZbuf, 4, 0);       //打开标志
            OLED_ShowChineseString(40, 4, GBBZbuf, 4, 1);       //关闭标志
        }else if(gSYS.whichChoose == 2){
            OLED_ShowChineseString(40, 2, DKBZbuf, 4, 1);       //打开标志
            OLED_ShowChineseString(40, 4, GBBZbuf, 4, 0);       //关闭标志
        }
    }
    else if (1 == gSYS.language)
    {
        // 显示英文字符：CURRENT FLAG OPEN CLOSE
        OLED_ShowString(28, 0, "CURRENT FLAG", 6, 0);
        if(gSYS.whichChoose == 1){
            OLED_ShowString(52, 2, "OPEN", 6, 0);
            OLED_ShowString(49, 4, "CLOSE", 6, 1);
        }else if(gSYS.whichChoose == 2){
            OLED_ShowString(52, 2, "OPEN", 6, 1);
            OLED_ShowString(49, 4, "CLOSE", 6, 0);
        }
    }
}

void MenuSetBuzzer4() // 蜂鸣开关界面
{
    if (0 == gSYS.language)
    {
        OLED_ShowChineseString(28, 0, DQFMKGbuf, 6, 0); //当前蜂鸣开关
        OLED_ShowChineseString(40, 2, MYFMbuf, 4, 0);   //没有蜂鸣
        OLED_ShowChineseString(40, 4, MYFMbuf, 4, 0);   //没有蜂鸣
    }
    else if (1 == gSYS.language)
    {
        // 显示英文字符：CURRENT BUZZER NOT HAVE
        OLED_ShowString(25, 0, "CURRENT BUZZER", 6, 0);
        OLED_ShowString(40, 2, "NOT HAVE", 6, 0);
        OLED_ShowString(40, 4, "NOT HAVE", 6, 0);
    }
}

void MenuSetBluetooth3() // 蓝牙开关界面
{
    if (0 == gSYS.language)
    {
        OLED_ShowChineseString(28, 0, DQLYKGbuf, 6, 0); //当前蓝牙开关
        if(gSYS.whichChoose == 1){
            OLED_ShowChineseString(40, 2, LYDKbuf, 4, 0);   //蓝牙打开
            OLED_ShowChineseString(40, 4, LYGBbuf, 4, 1);   //蓝牙关闭
        }else if(gSYS.whichChoose == 2){
            OLED_ShowChineseString(40, 2, LYDKbuf, 4, 1);   //蓝牙打开
            OLED_ShowChineseString(40, 4, LYGBbuf, 4, 0);   //蓝牙关闭
        }
    }else if (1 == gSYS.language)
    {
        OLED_ShowString(13, 0, "CURRENT BLUETOOTH", 6, 0);
        if(gSYS.whichChoose == 1){
            OLED_ShowString(52, 2, "OPEN", 6, 1);
            OLED_ShowString(49, 4, "CLOSE", 6, 0);
        }else if(gSYS.whichChoose == 2){
            OLED_ShowString(52, 2, "OPEN", 6, 0);
            OLED_ShowString(49, 4, "CLOSE", 6, 1);
        }
    }
}

//
void MenuInformation3()//相关信息界面
{
    OLED_DrawBMP(0, 0, 48, 2, MENU_ICON1648[7]);    //产品说明图标
    OLED_DrawBMP(79, 0, 127, 2, MENU_ICON1648[8]);  //重要提示图标
    OLED_DrawBMP(0, 4, 48, 6, MENU_ICON1648[9]);    //有关保修图标
    OLED_DrawBMP(79, 4, 127, 6, MENU_ICON1648[2]);  //产品信息图标

    if (0 == gSYS.language)
    {
        if(gSYS.whichChoose == 1){
            OLED_ShowChineseString(0, 2, CPSMbuf, 4, 1);    // 产品说明
        }else{
            OLED_ShowChineseString(0, 2, CPSMbuf, 4, 0);    // 产品说明
        }
        if(gSYS.whichChoose == 2){
            OLED_ShowChineseString(79, 2, ZYTSbuf, 4, 1);   // 重要提示
        }else{
            OLED_ShowChineseString(79, 2, ZYTSbuf, 4, 0);   // 重要提示
        }
        if(gSYS.whichChoose == 3){
            OLED_ShowChineseString(0, 6, YGBXbuf, 4, 1);    // 有关保修
        }else{
            OLED_ShowChineseString(0, 6, YGBXbuf, 4, 0);    // 有关保修
        }
        if(gSYS.whichChoose == 4){
            OLED_ShowChineseString(79, 6, CPXXbuf, 4, 1);   // 产品信息
        }else{
            OLED_ShowChineseString(79, 6, CPXXbuf, 4, 0);   // 产品信息
        }

        if(gSYS.whichChoose == 5){
            OLED_ShowCHinese(57, 2, 0, 1);//返
            OLED_ShowCHinese(57, 4, 1, 1);//回
        }else{
            OLED_ShowCHinese(57, 2, 0, 0);//返
            OLED_ShowCHinese(57, 4, 1, 0);//回
        }
    }
    else if (1 == gSYS.language)
    {
        if(gSYS.whichChoose == 1){
            OLED_ShowString(0, 1, "INTRODUC", 6, 1);
        }else{
            OLED_ShowString(0, 1, "INTRODUC", 6, 0);
        }
        if(gSYS.whichChoose == 2){
            OLED_ShowString(79, 1, " PROMPT ", 6, 1);
        }else{
            OLED_ShowString(79, 1, " PROMPT ", 6, 0);
        }
        if(gSYS.whichChoose == 3){
            OLED_ShowString(0, 5, "MAINTENA", 6, 1);
        }else{
            OLED_ShowString(0, 5, "MAINTENA", 6, 0);
        }
        if(gSYS.whichChoose == 4){
            OLED_ShowString(79, 5, "INFORMAT", 6, 1);
        }else{
            OLED_ShowString(79, 5, "INFORMAT", 6, 0);
        }

        if(gSYS.whichChoose == 5){
            OLED_ShowString(59, 0, "R", 8, 1);
            OLED_ShowString(59, 1, "e", 8, 1);
            OLED_ShowString(59, 2, "t", 8, 1);
            OLED_ShowString(59, 3, "u", 8, 1);
            OLED_ShowString(59, 4, "r", 8, 1);
            OLED_ShowString(59, 5, "n", 8, 1);
        }else{
            OLED_ShowString(59, 0, "R", 8, 0);
            OLED_ShowString(59, 1, "e", 8, 0);
            OLED_ShowString(59, 2, "t", 8, 0);
            OLED_ShowString(59, 3, "u", 8, 0);
            OLED_ShowString(59, 4, "r", 8, 0);
            OLED_ShowString(59, 5, "n", 8, 0);
        }
    }
}

//产品说明

//1: 短按开关键开机，长按关机
//2: 仪器放在黑色标准板上旋转编码器使数值符合标定数值
//1:Short press the button to turn on,long press to turn off
//2:The instrument on the black standard plate and rotate the knob to align the value

void MenuInfoProduct1Page4()//产品说明1  信息界面 Page1
{
    if(0 == gSYS.language)
    {
        // 第一行 "1: 短按开关键开机，长"
        OLED_ShowFuhao(5, 0, 0);  // 1
        OLED_ShowFuhao(12, 0, 10);  // :
        OLED_ShowChineseString(20, 0, Info1Line1, 9, 0);

        // 第二行"按关机"
        OLED_ShowChineseString(20, 2, Info1Line2, 3, 0);

        // 第三行 "2: 仪器放在黑色标准板"
        OLED_ShowFuhao(5, 4, 1);  // 1
        OLED_ShowFuhao(12, 4, 10);  // :
        OLED_ShowChineseString(20, 4, Info1Line3, 9, 0);

        // 第四行 "上旋转编码器使数值"
        OLED_ShowChineseString(20, 6, Info1Line4, 9, 0);
    }else if(1 == gSYS.language)
    {
        // 第一行: 1:Short press the button to turn on,long press to turn off
        OLED_ShowString(0, 0, "1:Short press the button to turn on,long press to turn off", 6, 0);
        // 第二行: 2:The instrument on the black standard plate and rotate the knob to align the value
        OLED_ShowString(0, 6, "2:The instrument on", 6, 0);
    }
}
void MenuInfoProduct2Page4()//产品说明  信息界面 Page2
{
    if(0 == gSYS.language)
    {
        //第一行："符合标定数值"
        OLED_ShowChineseString(0, 0, Info1Line5, 6, 0);
    }else if(1 == gSYS.language)
    {
        // 显示英文字符
        OLED_ShowString(0, 0, "the black standard plate and rotate the knob to align the value", 6, 0);
    }
}

//重要提示
//1: 标准版请保持清洁以免误差增大
//2: 用纸巾取少量无水酒精清洁标准板使标准板光亮无渍
//3：请使用合格的碱性电池长时间不使用仪器请取出电池

//1:The Standard Board,please keep clean
//2:Anhydrous alcohol  drops on paper towel clean standard Board
//3:Use quality alkaline battery. Remove battery if unused

void MenuInfoImportant1Page4()//重要提示  信息界面 Page1
{
    if(0 == gSYS.language)
    {

        // 第一行 "1: 标准版请保持清洁以"
        OLED_ShowFuhao(5, 0, 0);  // 1
        OLED_ShowFuhao(12, 0, 10);  // :
        OLED_ShowChineseString(20, 0, Info2Line1, 9, 0);

        // 第二行"免误差增大"
        OLED_ShowChineseString(20, 2, Info2Line2, 5, 0);

        // 第三行 "2: 用纸巾取少量无水酒"
        OLED_ShowFuhao(5, 4, 1);  // 2
        OLED_ShowFuhao(12, 4, 10);  // :
        OLED_ShowChineseString(20, 4, Info2Line3, 9, 0);

        // 第四行"精清洁标准板使标准"
        OLED_ShowChineseString(20, 6, Info2Line4, 9, 0);

    }else if(1 == gSYS.language)
    {
        OLED_ShowString(0, 0, "1:The Standard Board,please keep clean", 6, 0);   // 第一行
//        OLED_ShowString(0, 2, "", 6, 0);   // 第二行
//        OLED_ShowString(0, 4, "", 6, 0);    // 第三行
        OLED_ShowString(0, 4, "2:Anhydrous alcohol  drops on paper towel ", 6, 0);   // 第二行
        //clean standard Board
    }
}
void MenuInfoImportant2Page4()//重要提示  信息界面 Page2
{
    if(0 == gSYS.language)
    {
        // 第一行 "板光亮无渍"
        OLED_ShowChineseString(20, 0, Info2Line5, 5, 0);

        // 第二行"3：请使用合格的碱性电"

        OLED_ShowFuhao(5, 2, 2);  // 3
        OLED_ShowFuhao(12, 2, 10);  // :
        OLED_ShowChineseString(20, 2, Info2Line6, 9, 0);

        // 第三行 "池长时间不使用仪器"
        OLED_ShowChineseString(20, 4, Info2Line7, 9, 0);

        // 第四行"请取出电池"
        OLED_ShowChineseString(20, 6, Info2Line8, 5, 0);

    }else if(1 == gSYS.language)
    {
        // 第一行: clean standard Board
        OLED_ShowString(0, 0, "clean standard Board", 6, 0);   // 第一行
        // 第二行: 3:Use quality alkaline battery. Remove battery if unused
        OLED_ShowString(0, 2, "3:Use quality alkaline battery. Remove battery if unused", 6, 0);
    }
}

//有关保修

//整机及配件免费保修一年，除人为造成的故障等，均可在经销商购买处免费维修，人为故障等维修只收取成本费

//The machine and accessories have a one-year warranty. Free repairs are available at
//the dealer,except for damage caused by misuse, which will incur a cost for repairs.

void MenuInfoWarranty1Page4()//有关保修  信息界面 Page1
{
    if(0 == gSYS.language)
    {
        // 第一行"整机及配件免费保修一"
        OLED_ShowChineseString(0, 0, Info3Line1, 10, 0);
        // 第二行"年，除人为造成的故障"
        OLED_ShowChineseString(0, 2, Info3Line2, 10, 0);
        // 第三行"等，均可在经销商购买"
        OLED_ShowChineseString(0, 4, Info3Line3, 10, 0);
        // 第四行"处免费维修，人为故障"
        OLED_ShowChineseString(0, 6, Info3Line4, 10, 0);
    }else if(1 == gSYS.language)
    {
        OLED_ShowString(0, 0, "The machine and accessories have a one-year warranty. Free repairs are available at ", 6, 0);
    }
}

void MenuInfoWarranty2Page4()//有关保修 信息界面 Page2
{
    if(0 == gSYS.language)
    {
        // 第一行"等维修只收取成本费"
        OLED_ShowChineseString(0, 0, Info3Line5, 9, 0);
    }else if(1 == gSYS.language)
    {
        OLED_ShowString(0, 0, "the dealer,except for damage caused by misuse, which will incur a cost for repairs.", 6, 0);
    }
}
